<template>
	<view class="wrap">
		<web-view :webview-styles="webviewStyles" :src="url"></web-view>
	</view>
</template>

<script>
	import mixinsCommon from '../../mixins/common.js'
	import mixinsAuth from '../../mixins/auth.js'

	export default {
		mixins: [mixinsCommon, mixinsAuth],
		data() {
			return {
				url: '',
				webviewStyles: {
					progress: {
						color: '#FF3333'
					}
				}
			}
		},
		onLoad(options) {
			console.log('web onLoad', options)
			this.options = options
			this.url = decodeURIComponent(options.url)
		}
	};
</script>

<style lang="scss">
	.wrap {}
</style>
